package com.cabms.domain;

import java.util.Date;

public class Information {

	private String name;
	//证件号
	private Integer id;
	//出生日期
	private Date birthday;
	//性别:0男,1女
	private Integer sex;
	//婚姻状况 0未婚;1丧偶;2离婚
	private Integer mastatus;
	
	//户口所在地
	private String placeOfHousehold;
	//电话号码
	private Integer phoneNum;
	
	
	public Integer getSex() {
		return sex;
	}


	public void setSex(Integer sex) {
		this.sex = sex;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}


	public Date getBirthday() {
		return birthday;
	}


	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}


	public Integer getMastatus() {
		return mastatus;
	}


	public void setMastatus(Integer mastatus) {
		this.mastatus = mastatus;
	}


	public String getPlaceOfHousehold() {
		return placeOfHousehold;
	}


	public void setPlaceOfHousehold(String placeOfHousehold) {
		this.placeOfHousehold = placeOfHousehold;
	}


	public Integer getPhoneNum() {
		return phoneNum;
	}


	public void setPhoneNum(Integer phoneNum) {
		this.phoneNum = phoneNum;
	}


	public boolean isOK() {
		if (id == null) return false;
		if (name == null) return false;
		if (birthday == null) return false;
		if (sex == null) return false;
		if (mastatus == null) return false;
		if (placeOfHousehold == null) return false;
		if (phoneNum == null) return false;
		
		return true;
	}
}
